package com.czk.service;


import com.czk.model.hosp.Department;
import com.czk.vo.hosp.DepartmentQueryVo;
import com.czk.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/11/11 21:03
 */
public interface DepartmentService {
    /**
     * 保存科室
     *
     * @param map
     */
    void save(Map<String, Object> map);

    /**
     * 部门的分页查询
     *
     * @param page
     * @param limit
     * @param departmentQueryVo
     * @return
     */
    Page<Department> findPageDepartment(int page, int limit, DepartmentQueryVo departmentQueryVo);

    /**
     * 删除医院接口
     *
     * @param hoscode
     * @param depcode
     */
    void removeDepartment(String hoscode, String depcode);

    /**
     * 根据医院编号查询科室信息
     *
     * @param hoscode
     * @return
     */
    List<DepartmentVo> findDeptTree(String hoscode);

    /**
     * 根据科室编号和医院编号查询科室名称
     *
     * @param hoscode
     * @param depcode
     * @return
     */
    String getDepName(String hoscode, String depcode);

    /**
     * 返回部门对象
     *
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartment(String hoscode, String depcode);
}
